﻿using MVVM_Learning.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MVVM_Learning.ViewModels
{
    internal class DishMenuItemViewModel:Notificationobject
    {
        public Dish Dish { get; set; } // 将名字、种类、评论、得分都放进Dish里面

        private bool isSelected;
        public bool IsSelected 
        {
            get { return isSelected; } 
            set 
            {
                isSelected = value;
                this.RaisePropertyChanged("IsSelected");
            }
        }
    }
}
